/**
 *   Copyright (c) fanguangping. All rights reserved.
 *   The use and distribution terms for this software are covered by the
 *   Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
 *   which can be found in the file epl-v10.html at the root of this distribution.
 *   By using this software in any fashion, you are agreeing to be bound by
 * 	 the terms of this license.
 *   You must not remove this notice, or any other, from this software.
 **/
package org.jfunny.core.sys;

import org.jfunny.core.util.FileUtil;

/**
 * 
 * @author fanguangping
 *
 */
public class SysProperties {
	public static final String PROPERTIES_FILE = "sys.properties";
	
	public static final String SYS_TEMPLATE_PATH = "sys.tpl";
	public static final String SYS_NAMESPACE = "org.jfunny.sys";

	// global settings
	public static final String TARGET_LANGUAGE;
	public static final String SYS_FUNC_IMPL;
	public static final String CORE_NAMESPACE;
	public static final String CORE_TEMPLATE_PATH;
	public static final String RESULT_SUFFIX;

	static {
		TARGET_LANGUAGE = FileUtil.getConfigValue(PROPERTIES_FILE, "jfunny.target.language");
		SYS_FUNC_IMPL = FileUtil.getConfigValue(PROPERTIES_FILE, "jfunny.system.function.implementation");
		CORE_NAMESPACE = FileUtil.getConfigValue(PROPERTIES_FILE, "jfunny.core.namespace");
		CORE_TEMPLATE_PATH = FileUtil.getConfigValue(PROPERTIES_FILE, "jfunny.core.template");
		RESULT_SUFFIX = FileUtil.getConfigValue(PROPERTIES_FILE, "jfunny.result.suffix");
	}
}
